pp108 : Creating a State

Creating a State

This topic describes the procedure to create a state.

A state model is a sequence of states.

  1. Select a starting point and click (MDM State Model) to create an MDM State Model. Alternatively, you can also open an existing state model and add states to it. The <MDM State Model> - MDM State Model window appears.
  2. Click States tab. Click above the State Name and Description table. The State - Enter State Details window appears.
  3. Specify the state name and state description in the State and State Description fields respectively.
  4. Specify if the state will be initial state or final state in the state model by selecting Initial State or Final State check boxes and click OK.

    Note:

    • If both the check boxes are selected, the state forms a continuous loop in the state model. This is useful in scenarios when the state model must continuously process business objects.
    • To edit the attributes of a state, select a state and click . To delete the state, select a state and click .
  5. Select Show in cockpit option to view the instances of this state from the MDM Cockpit.
  6. Specify the required action(s) in the Entry and Exit tabs that are to be performed when the business object enters or exits the state. Click to add an action. For information on the default actions that can be added, refer to Types of Actions.You can Create a Custom Action Type, if required.

    Note: Select an action and click to delete it.

  7. Click . The state is saved in the state model. If the state model is already saved then the state is available for use in the state model. If the state model is not saved, go to the next. Otherwise, skip the next step.
  8. Type the name and description for the MDM state model in the Name and Description fields that appear in the <Untitled MDM State Model> - MDM State Model dialog box if the state model is not saved.

    Note: To save the state model at a specific location, click and select a folder in the Select Folder dialog box. If required, create a project, right-click it and create a folder.

The required state is created.

After you complete this task:
States must be associated with a state model.


Related concepts

State Machine

Related tasks

Designing a State Model

Related information

State Modeling Using State Machine
State Model Notation Using SCXML